<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>配件寄送</title>
    <link rel="stylesheet" href="../../../css/wx/mui.min.css">
    <link rel="stylesheet" href="../../../css/wx/icons-extra.css"/>
    <link rel="stylesheet" href="../../../css/wx/style.css"/>
    <link rel="stylesheet" href="../../../css/wx/app.css"/>

    <script type="text/javascript">
        var pageConfig = {
            jss: ["app/pjjs/pjjs"]
        };
    </script>
    <script data-main="../../../js/wx/public/config" src="../../../js/require.js"></script>

    <style>

        p {
            margin-bottom: 0;
        }

        .returnCont {
            top: 10%;
            left: 5%;
            right: 5%;
        }

        .mui-scroll-wrapper .mui-table-view-cell {
            padding: 0 0 3px 0;
        }

        .mui-scroll-wrapper .mui-table-view {
            background: none;
        }

        .mui-scroll-wrapper .mui-table-view:before, .mui-scroll-wrapper .mui-table-view:after {
            height: 0;
        }

        .footBtn .mui-checkbox {
            background: #fff;
            line-height: 50px;
        }

        .footBtn .mui-checkbox input {
            top: -5px;
            left: 15px !important;
        }

        .footBtn .mui-checkbox label {
            padding-left: 44px;
        }

        .mui-scroll-wrapper .mui-card-header .mui-checkbox.mui-left label {
            padding-left: 22px;
            font-size: 13px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-card {
            margin: 10px 10px 0 10px;
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-row .mui-col-xs-10 {
            padding-left: 15px;
            position: relative;
        }

        .mui-table-view-cell:after {
            height: 0
        }

        .mui-scroll-wrapper .mui-table-view-cell .mui-row .mui-col-xs-10 .number {
            bottom: 0;
        }
    </style>
</head>

<body>
<div class="mui-content pjjs">
    <div id="pullRefresh" class="mui-scroll-wrapper">
        <div class="mui-scroll" id="pjjs">
            <pjjs-listitem :model="items"></pjjs-listitem>
        </div>
    </div>
</div>
<div class="footBtn flexl shadow2" id="footdiv">
    <div class="mui-checkbox mui-left" style="flex: 1;">
        <label>全选</label>
        <input type="checkbox" id="allCheck" style="top:17px;">
    </div>
    <button type="button" class="puliColor_bg edit" style="width: 50%;" @tap="edit">提交</button>
</div>
<script id="item-template" type="text/x-template">
    <ul class="mui-table-view">
        <li v-for="(val,index) in model" class="mui-table-view-cell">
            <div class="mui-card">
                <div class="mui-card-header">
                    <div class="mui-checkbox mui-left" style="flex: 1 1 0%;">
                        <label>配件编号:{{val.MMRT003}}</label>
                        <input v-model="val.checked" type="checkbox" style="left: -5px;top: 0;">
                    </div>
                    <!--<a href="javascript:;" @tap="editButton(index)" style="padding: 0"><i class="iconfont icon icon-17"></i></a>-->
                </div>
                <div class="mui-card-content">
                    <div class="mui-card-content-inner">
                        <div class="mui-row">
                            <div class="mui-col-xs-2">
                                <div class="goodsImg"><img :src="val.GWAM015 | goodsImgsUtils"/></div>
                            </div>
                            <div class="mui-col-xs-10">
                                <p><span>配件名称：</span>{{val.GWAML003}}</p>
                                <p><span>批号：</span>{{val.MMRT004}}</p>
                                <p><span>单位：</span>{{val.MMRT005|goodsUnits}}</p>
                                <p><span>申请数量：</span>{{val.MMRT006}}</p>
                                <div class="number">
                                    <div class="mui-numbox"  id="numbox_demo2" data-numbox-step="1"
                                         data-numbox-min="1" >
                                        <button @tap.stop="minus(val)" class="mui-btn mui-btn-numbox-minus" type="button">-</button>
                                        <input class="mui-input-numbox" type="number" v-model="val.MMRU005">
                                        <button @tap.stop="plus(val)" class="mui-btn mui-btn-numbox-plus" type="button">+</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </li>
    </ul>
</script>
</body>
</html>